package com.ethink.order.common.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.order.api.model.TobSaleReturnModeModel;
import com.ethink.order.api.model.TobSaleReturnModel;
import com.ethink.order.api.request.TobSaleReturnOrderQueryRequest;
import com.ethink.order.common.entity.TobSaleReturnOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 预售退单 Mapper接口
 *
 * @author default
 * @date 2022-12-08
 */
@Mapper
public interface TobSaleReturnOrderMapper extends MyBaseMapper<TobSaleReturnOrder> {

    /**
     * 分页查询
     *
     * @param buildPage
     * @param request
     * @return
     */
    Page<TobSaleReturnModel> pageQuery(Page buildPage, @Param("request") TobSaleReturnOrderQueryRequest request);

    /**
     * 货品模式分页查询
     *
     * @param buildPage
     * @param request
     * @return
     */
    Page<TobSaleReturnModeModel> pageModeQuery(Page buildPage, @Param("request") TobSaleReturnOrderQueryRequest request);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    //TobSaleReturnOrderInfo getTobSaleReturnOrderById(@Param("id") Long id);

}